import Mock from 'mockjs';
const data = Mock.mock({
  "最新动态|10": [{
    id: "@id",
    title: "@ctitle(5,20)",
    image: "@image(100X75,@color,@cname)",
    "clicknum|0-100": 0,
    "favor|0-200": 0
  }],
  "最新投稿|10": [{
    id: "@id",
    title: "@ctitle(5,20)",
    image: "@image(100X75,@color,@cname)",
    "clicknum|0-100": 0,
    "favor|0-200": 0
  }]
})

Mock.mock('/api/list', 'get', data);

const movieData = Mock.mock({
  "影院A": {
    "今天|5": [{
      id: "@id",
      name: "@ctitle",
      image: "@image(75X100,@color,@cname)",
      "price|30-90": 38
    }],
    "明天|10": [{
      id: "@id",
      name: "@ctitle",
      image: "@image(75X100,@color,@cname)",
      "price|30-90": 38
    }],
    "后天|8": [{
      id: "@id",
      name: "@ctitle",
      image: "@image(75X100,@color,@cname)",
      "price|30-90": 38
    }]
  },
  "影院B": {
    "今天|5": [{
      id: "@id",
      name: "@ctitle",
      image: "@image(75X100,@color,@cname)",
      "price|30-90": 38
    }],
    "明天|10": [{
      id: "@id",
      name: "@ctitle",
      image: "@image(75X100,@color,@cname)",
      "price|30-90": 38
    }],
    "后天|8": [{
      id: "@id",
      name: "@ctitle",
      image: "@image(75X100,@color,@cname)",
      "price|30-90": 38
    }]
  },
  "影院C": {
    "今天|5": [{
      id: "@id",
      name: "@ctitle",
      image: "@image(75X100,@color,@cname)",
      "price|30-90": 38
    }],
    "明天|10": [{
      id: "@id",
      name: "@ctitle",
      image: "@image(75X100,@color,@cname)",
      "price|30-90": 38
    }],
    "后天|8": [{
      id: "@id",
      name: "@ctitle",
      image: "@image(75X100,@color,@cname)",
      "price|30-90": 38
    }]
  }
})

Mock.mock('/api/movieList', 'get', movieData);